<html lang="en">
<head>
    <title>&lt;/> htmx - high power tools for html</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/css/site.css"/>
    <link rel="stylesheet" href="/css/prism-htmx.css"/>
    <script src="https://unpkg.com/prismjs@1.20.0/components/prism-core.min.js"></script>
    <script src="https://unpkg.com/prismjs@1.20.0/plugins/autoloader/prism-autoloader.min.js"></script>
    <script src="/js/htmx.js"></script>
    <script src="/js/class-tools.js"></script>
    <script src="/js/preload.js"></script>
    <script src="/js/_hyperscript.js"></script>
    <script>
        htmx.onLoad(function(){
            Prism.highlightAll();
        })
    </script>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />

</head>
<body hx-ext="class-tools, preload">

<div class="top-nav">
    <div class="c">
        <div class="menu">
            <div class="logo-wrapper">
                <span hx-get="/" hx-target="body" hx-push-url="true" class="logo light">&lt;<a>/</a>&gt; htm<a>x</a></span>
                <svg onclick="document.getElementById('nav').classList.toggle('show')" class="hamburger" viewBox="0 0 100 80" width="25" height="25" style="margin-bottom:-5px">
                    <rect width="100" height="20" style="fill:rgb(52, 101, 164)" rx="10"></rect>
                    <rect y="30" width="100" height="20" style="fill:rgb(52, 101, 164)" rx="10"></rect>
                    <rect y="60" width="100" height="20" style="fill:rgb(52, 101, 164)" rx="10"></rect>
                </svg>
            </div>
            {% if page.url.indexOf("/examples/") == 0 %}
            <div id="nav" class="navigation nav"> <!-- don't boost on demo pages, sinon hijacks everything :/ -->
            {% else %}
            <div id="nav" class="navigation" hx-boost="true">
            {% endif %}
                <div class="navigation-items" preload="mouseover">
                    <div>
                        <a href="/docs/">docs</a>
                    </div>
                    <div>
                        <a href="/reference/">reference</a>
                    </div>
                    <div>
                        <a href="/examples/">examples</a>
                    </div>
                    <div>
                        <a href="/talk/">talk</a>
                    </div>
                    <div>
                        <a href="https://github.com/sponsors/bigskysoftware?o=esb">sponsor</a>
                    </div>
                    <div>
                        <input _="on keyup[key is 'Escape'] or click elsewhere
                                    blur() then set my.value to ''
                                  on keyup[key is '/'] from <body/>
                                    focus()"
                                placeholder="&#128269; / to Search Docs" style="width:150px; padding: 6px; border: 1px solid #ccc; border-radius: 4px; margin-right: 6px" type="text" id="search"/>
                    </div>
                </div>
                <div class="github-stars">
                    <iframe style="margin:auto;" src="https://ghbtns.com/github-btn.html?user=bigskysoftware&repo=htmx&type=star&count=true" frameborder="0" scrolling="0" width="150" height="20" title="Star htmx on GitHub"></iframe>
                </div>
            </div>
        </div>
    </div>
</div>
</div>

<div class="c content">
    {{ content | safe }}
</div>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
    apiKey: '47070108e6ce8dfee6beee94b83bee7d',
    indexName: 'htmx',
    inputSelector: '#search',
    debug: false // Set debug to true if you want to inspect the dropdown
});
</script>
</body>
</html>
